#pragma once

#include <afx.h>
#include <iostream>
#include <list>

class CVariable
{
public:
	virtual void getVal(CString & sVal);
	virtual void getVal(int &sVal);

	virtual void setVal(const CString &sVal);
	virtual void setVal(const int &sVal);
	CVariable();
	~CVariable();
};

class CInt : public CVariable
{
public:
	CInt();
	CInt(int sVal);

	void getVal(int &sVal);
	void setVal(const int &sVal);

private:
	int m_Val;
};

class CMyString : public CVariable
{
public:
	CMyString();
	CMyString(CString sVal);

	void getVal(CString &sVal);
	void setVal(const CString &sVal);

private:
	CString m_Val;
};